//
//  HDProgressAlert.swift
//  HuaDaoPeifu
//
//  Created by liangyuanliangyuan on 16/4/21.
//  Copyright © 2016年 paiyipai. All rights reserved.
//

import UIKit
import SVProgressHUD

struct alertTypeDescri {
    static let enterPhoneNum = "请输入手机号"
    static let enterPassWord = "请输入密码"
    static let confirmPassWord = "请确认密码"
    static let enterCretCode = "请输入证件号"
    static let enterName = "请输入姓名"
    static let selectInsuranceName = "请选择投保机构"
}
struct RegErrorStatus {
    static let editPhone = "请输入手机号"
    static let rightPhone = "请输入正确的手机号"
    static let editCode = "请输入验证码"
    static let rightCode = "请输入正确的验证码"
    static let passwordEqualCode = "两次密码输入不一致"
}

struct FeedBackDescri {
    static let enterPhone = "请输入正确的手机号"
    static let enterFeed = "请输入内容"
}

var alertType = alertTypeDescri()

class HDProgressAlert: NSObject {

    func enterPhoneNumber(){
    SVProgressHUD.showError(alertTypeDescri.enterPhoneNum)
    }
    
    func enterPassWord(){
    SVProgressHUD.showError(alertTypeDescri.enterPassWord)
    }
    
    func confirmPassWord(){
        SVProgressHUD.showError(alertTypeDescri.confirmPassWord)
    }
    
    
    func pleaseEnterPhoneNumber() {
        SVProgressHUD.showError(RegErrorStatus.editPhone)
    }
    func pleaseEnterRightPhoneNumber() {
        SVProgressHUD.showError(RegErrorStatus.rightPhone)
    }
    func pleaseEnterAuthCode() {
        SVProgressHUD.showError(RegErrorStatus.editCode)

    }
    func pleaseEnterRightAuthCode() {
        SVProgressHUD.showError(RegErrorStatus.rightCode)
    }
    func pleaseEnterEqualPW() {
        SVProgressHUD.showError(RegErrorStatus.passwordEqualCode)
    }

    
    func enterContactNumber(){
        SVProgressHUD.showError(FeedBackDescri.enterPhone)
    }
    func enterFeedContent(){
        SVProgressHUD.showError(FeedBackDescri.enterFeed)
    }
    
    func enterCretCode() {
        SVProgressHUD.showError(alertTypeDescri.enterCretCode)
    }
    
    func pleaseEnterName() {
        SVProgressHUD.showError(alertTypeDescri.enterName)
    }
    
    func selectInsurance() {
        SVProgressHUD.showError(alertTypeDescri.selectInsuranceName)
    }
    
//    func netErrorAlert(){
//        SVProgressHUD.showError(<#T##errorString: String!##String!#>)
//    }
}
